.class public Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;
.super Landroid/widget/HorizontalScrollView;


# instance fields
.field private a:Landroid/view/View;

.field private b:Landroid/view/View;

.field private c:Landroid/view/View;

.field private d:I

.field private e:Landroid/app/Activity;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    invoke-direct {p0, p1}, Landroid/widget/HorizontalScrollView;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x0

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->d:I

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    invoke-direct {p0, p1, p2}, Landroid/widget/HorizontalScrollView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const/4 v0, 0x0

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->d:I

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 1

    invoke-direct {p0, p1, p2, p3}, Landroid/widget/HorizontalScrollView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const/4 v0, 0x0

    iput v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->d:I

    return-void
.end method


# virtual methods
.method public a()V
    .locals 3

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->e:Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->isFinishing()Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->a:Landroid/view/View;

    if-eqz v0, :cond_1

    invoke-virtual {p0, v1, v1}, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->measure(II)V

    iget v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->d:I

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->getMeasuredWidth()I

    move-result v1

    if-lt v0, v1, :cond_0

    :cond_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->getLeft()I

    move-result v0

    if-nez v0, :cond_2

    :cond_1
    :goto_0
    return-void

    :cond_2
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->getRight()I

    move-result v0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->getMeasuredWidth()I

    move-result v1

    iget v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->d:I

    sub-int/2addr v1, v2

    if-ne v0, v1, :cond_1

    goto :goto_0
.end method

.method protected onScrollChanged(IIII)V
    .locals 2

    invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/HorizontalScrollView;->onScrollChanged(IIII)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->a()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->e:Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->isFinishing()Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->a:Landroid/view/View;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->b:Landroid/view/View;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->c:Landroid/view/View;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->a:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getWidth()I

    move-result v0

    iget v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->d:I

    if-gt v0, v1, :cond_0

    :cond_0
    if-nez p1, :cond_2

    :cond_1
    :goto_0
    return-void

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->a:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getWidth()I

    move-result v0

    sub-int/2addr v0, p1

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->b:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getWidth()I

    move-result v1

    add-int/2addr v0, v1

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->c:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getLeft()I

    move-result v1

    add-int/2addr v0, v1

    iget v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->d:I

    if-ne v0, v1, :cond_1

    goto :goto_0
.end method

.method public setParam(Landroid/app/Activity;ILandroid/view/View;Landroid/view/View;Landroid/view/View;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->e:Landroid/app/Activity;

    iput p2, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->d:I

    iput-object p3, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->a:Landroid/view/View;

    iput-object p4, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->b:Landroid/view/View;

    iput-object p5, p0, Lcom/waiqin365/lightapp/dailyreport/view/ColumnHorizontalScrollView;->c:Landroid/view/View;

    return-void
.end method
